package gui;

import client.Request;
import classes.User;
import javax.swing.JOptionPane;

public class MainFrame extends javax.swing.JFrame {

    private Request Client;
    private User User;
    /** Creates new form MainFrame */
    public MainFrame() {
        Client = new Request();
        User = new User();
        initComponents();

        //Client.create_connection("localhost",7000);
        
        login.setVisible(true);
        homescroll.setVisible(false);
        home.setVisible(false);
        home_sidebar.setVisible(false);
        allgames.setVisible(false);
        allgamesscroll.setVisible(false);
        toolbar.setVisible(false);
        betting.setVisible(false);
        about.setVisible(false);
        toolbar.setVisible(false);

    }


 /*   private void reInitComponents() {
    home = new gui.HomePanel(User, Client);
 
    org.jdesktop.layout.GroupLayout homeLayout = new org.jdesktop.layout.GroupLayout(home);
    home.setLayout(homeLayout);
    homeLayout.setHorizontalGroup(
        homeLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
        .add(0, 1100, Short.MAX_VALUE)
    );
    homeLayout.setVerticalGroup(
        homeLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
        .add(0, 1870, Short.MAX_VALUE)
    );

    getContentPane().add(home);
    home.setBounds(0, 110, 1100, 1870);

    jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/uefa/back.jpg"))); // NOI18N
    getContentPane().add(jLabel2);
    jLabel2.setBounds(0, 0, 1576, 840);

    betting = new gui.BettingPanel(Client, User);

    pack();
    }// </editor-fold>
*/
    

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        login = new gui.Login();
        jLabel13 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        day = new javax.swing.JComboBox();
        signup_l = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        signup_b = new javax.swing.JLabel();
        year = new javax.swing.JComboBox();
        jLabel1 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        lastname = new javax.swing.JTextField();
        lemail = new javax.swing.JTextField();
        jLabel14 = new javax.swing.JLabel();
        login_l = new javax.swing.JLabel();
        month = new javax.swing.JComboBox();
        login_b = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        email = new javax.swing.JTextField();
        jLabel16 = new javax.swing.JLabel();
        firstname = new javax.swing.JTextField();
        password = new javax.swing.JPasswordField();
        lpassword = new javax.swing.JPasswordField();
        bkgrdtemp = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        toolbar = new javax.swing.JPanel();
        homelabel = new javax.swing.JLabel();
        gameslabel = new javax.swing.JLabel();
        bettinglabel = new javax.swing.JLabel();
        teamslabel = new javax.swing.JLabel();
        aboutlabel = new javax.swing.JLabel();
        home_sidebar = new javax.swing.JPanel();
        welcome = new javax.swing.JLabel();
        comments_title = new javax.swing.JLabel();
        morelabel = new javax.swing.JLabel();
        user_bets1 = new javax.swing.JLabel();
        moreicon = new javax.swing.JLabel();
        betsnumber = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        userwelcome = new javax.swing.JLabel();
        commentspanel = new javax.swing.JPanel();
        p2 = new javax.swing.JPanel();
        betTeam2 = new javax.swing.JLabel();
        betOn2 = new javax.swing.JLabel();
        betAmount2 = new javax.swing.JLabel();
        betspanel = new javax.swing.JPanel();
        p3 = new javax.swing.JPanel();
        betTeam4 = new javax.swing.JLabel();
        betOn3 = new javax.swing.JLabel();
        betAmount3 = new javax.swing.JLabel();
        homescroll = new javax.swing.JScrollPane();
        home = new javax.swing.JPanel();
        currentgameslabel = new javax.swing.JLabel();
        panel1 = new javax.swing.JPanel();
        team11 = new javax.swing.JLabel();
        loc1 = new javax.swing.JLabel();
        ref1 = new javax.swing.JLabel();
        pic21 = new javax.swing.JLabel();
        pic11 = new javax.swing.JLabel();
        jSeparator2 = new javax.swing.JSeparator();
        team12 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        panel2 = new javax.swing.JPanel();
        team13 = new javax.swing.JLabel();
        loc2 = new javax.swing.JLabel();
        ref2 = new javax.swing.JLabel();
        pic22 = new javax.swing.JLabel();
        pic12 = new javax.swing.JLabel();
        jSeparator3 = new javax.swing.JSeparator();
        team14 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        panel3 = new javax.swing.JPanel();
        team15 = new javax.swing.JLabel();
        loc3 = new javax.swing.JLabel();
        ref3 = new javax.swing.JLabel();
        pic23 = new javax.swing.JLabel();
        pic13 = new javax.swing.JLabel();
        jSeparator6 = new javax.swing.JSeparator();
        team16 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        panel4 = new javax.swing.JPanel();
        team17 = new javax.swing.JLabel();
        loc4 = new javax.swing.JLabel();
        ref4 = new javax.swing.JLabel();
        pic24 = new javax.swing.JLabel();
        pic14 = new javax.swing.JLabel();
        jSeparator8 = new javax.swing.JSeparator();
        team18 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        panel5 = new javax.swing.JPanel();
        team19 = new javax.swing.JLabel();
        loc5 = new javax.swing.JLabel();
        ref5 = new javax.swing.JLabel();
        pic25 = new javax.swing.JLabel();
        pic15 = new javax.swing.JLabel();
        jSeparator10 = new javax.swing.JSeparator();
        team20 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        panel6 = new javax.swing.JPanel();
        team21 = new javax.swing.JLabel();
        loc6 = new javax.swing.JLabel();
        ref6 = new javax.swing.JLabel();
        pic26 = new javax.swing.JLabel();
        pic16 = new javax.swing.JLabel();
        jSeparator12 = new javax.swing.JSeparator();
        team22 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        panel7 = new javax.swing.JPanel();
        team23 = new javax.swing.JLabel();
        loc7 = new javax.swing.JLabel();
        ref7 = new javax.swing.JLabel();
        pic27 = new javax.swing.JLabel();
        pic17 = new javax.swing.JLabel();
        jSeparator13 = new javax.swing.JSeparator();
        team24 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        panel8 = new javax.swing.JPanel();
        team25 = new javax.swing.JLabel();
        loc8 = new javax.swing.JLabel();
        ref8 = new javax.swing.JLabel();
        pic28 = new javax.swing.JLabel();
        pic18 = new javax.swing.JLabel();
        jSeparator14 = new javax.swing.JSeparator();
        team26 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        betting = new javax.swing.JPanel();
        tablescroll = new javax.swing.JScrollPane();
        bettable = new javax.swing.JTable();
        pantest = new javax.swing.JPanel();
        placebeticon = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        jsep2 = new javax.swing.JSeparator();
        betgamelocation = new javax.swing.JLabel();
        jLabel24 = new javax.swing.JLabel();
        jLabel25 = new javax.swing.JLabel();
        betdate = new javax.swing.JLabel();
        betteamslabel2 = new javax.swing.JLabel();
        placebetpanel = new javax.swing.JPanel();
        jLabel27 = new javax.swing.JLabel();
        betteamslabel = new javax.swing.JLabel();
        jLabel29 = new javax.swing.JLabel();
        betdatetime = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        jLabel32 = new javax.swing.JLabel();
        jLabel33 = new javax.swing.JLabel();
        jLabel34 = new javax.swing.JLabel();
        bettypecombo = new javax.swing.JComboBox();
        jSeparator4 = new javax.swing.JSeparator();
        jsep1 = new javax.swing.JSeparator();
        betamountcombo = new javax.swing.JComboBox();
        placebetlabel = new javax.swing.JLabel();
        about = new javax.swing.JPanel();
        jLabel26 = new javax.swing.JLabel();
        jLabel38 = new javax.swing.JLabel();
        jLabel39 = new javax.swing.JLabel();
        jLabel40 = new javax.swing.JLabel();
        jLabel41 = new javax.swing.JLabel();
        jLabel42 = new javax.swing.JLabel();
        jLabel43 = new javax.swing.JLabel();
        jLabel44 = new javax.swing.JLabel();
        jLabel45 = new javax.swing.JLabel();
        jSeparator5 = new javax.swing.JSeparator();
        jSeparator7 = new javax.swing.JSeparator();
        allgamesscroll = new javax.swing.JScrollPane();
        allgames = new javax.swing.JPanel();
        jLabel6 = new javax.swing.JLabel();
        bydate = new javax.swing.JLabel();
        byref = new javax.swing.JLabel();
        byaway = new javax.swing.JLabel();
        bylocation = new javax.swing.JLabel();
        byhome = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        login.setBackground(new java.awt.Color(255, 51, 51));
        login.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        login.setMaximumSize(new java.awt.Dimension(400, 450));
        login.setMinimumSize(new java.awt.Dimension(400, 450));
        login.setPreferredSize(new java.awt.Dimension(400, 450));
        login.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel13.setFont(new java.awt.Font("Helvetica", 0, 13));
        jLabel13.setForeground(new java.awt.Color(255, 255, 255));
        jLabel13.setText("Password:");
        login.add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 350, 110, 15));

        jLabel5.setFont(new java.awt.Font("Helvetica", 0, 13));
        jLabel5.setForeground(new java.awt.Color(255, 255, 255));
        jLabel5.setText("Password:");
        login.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 150, 110, -1));

        day.setFont(new java.awt.Font("Helvetica", 0, 13)); // NOI18N
        day.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Day:", "1", "2",
            "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16",
            "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29",
            "30", "31" }));
login.add(day, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 180, 80, -1));

signup_l.setForeground(new java.awt.Color(255, 255, 255));
signup_l.setText("Sign up");
signup_l.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
        signup_lMouseClicked(evt);
    }
    });
    login.add(signup_l, new org.netbeans.lib.awtextra.AbsoluteConstraints(270, 230, 60, 20));

    jLabel4.setFont(new java.awt.Font("Helvetica", 0, 13)); // NOI18N
    jLabel4.setForeground(new java.awt.Color(255, 255, 255));
    jLabel4.setText("Your Email:");
    login.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 120, 110, -1));

    signup_b.setIcon(new javax.swing.ImageIcon(getClass().getResource("/uefa/user2.png"))); // NOI18N
    signup_b.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            signup_bMouseClicked(evt);
        }
    });
    login.add(signup_b, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 220, 40, 40));

    year.setFont(new java.awt.Font("Helvetica", 0, 13)); // NOI18N
    year.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Year:","1950", "1951", "1952", "1953", "1954", "1955", "1956", "1957", "1958", "1959", "1960", "1961", "1962", "1963", "1964", "1965", "1966", "1967", "1968", "1969", "1970", "1971", "1972", "1973", "1974", "1975", "1976", "1977", "1978", "1979", "1980", "1981", "1982", "1983", "1984", "1985", "1986", "1987", "1988", "1989", "1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005"}));
    login.add(year, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 180, 80, -1));

    jLabel1.setFont(new java.awt.Font("Helvetica", 0, 13));
    jLabel1.setForeground(new java.awt.Color(255, 255, 255));
    jLabel1.setText("Birthday:");
    login.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 180, 110, -1));

    jLabel3.setFont(new java.awt.Font("Helvetica", 0, 13));
    jLabel3.setForeground(new java.awt.Color(255, 255, 255));
    jLabel3.setText("Last Name:");
    login.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 90, 110, -1));

    jLabel7.setFont(new java.awt.Font("Helvetica", 0, 13));
    jLabel7.setForeground(new java.awt.Color(255, 255, 255));
    jLabel7.setText("First Name:");
    login.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 60, 110, -1));

    lastname.setFont(new java.awt.Font("Helvetica", 0, 13)); // NOI18N
    /*
    lastname.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            lastnameActionPerformed(evt);
        }
    });
    */
    login.add(lastname, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 80, 240, -1));

    lemail.setFont(new java.awt.Font("Helvetica", 0, 13)); // NOI18N
    /*
    lemail.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            lemailActionPerformed(evt);
        }
    });
    */
    login.add(lemail, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 310, 240, 27));

    jLabel14.setFont(new java.awt.Font("Helvetica", 0, 13));
    jLabel14.setForeground(new java.awt.Color(255, 255, 255));
    jLabel14.setText("Your Email:");
    login.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 320, 110, 15));

    login_l.setForeground(new java.awt.Color(255, 255, 255));
    login_l.setText("Login ");
    login_l.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            login_lMouseClicked(evt);
        }
    });
    login.add(login_l, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 390, 60, -1));

    month.setFont(new java.awt.Font("Helvetica", 0, 13)); // NOI18N
    month.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Month:", "Jan", "Feb", "Mar",
        "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }));
/*
month.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
    monthActionPerformed(evt);
    }
    });
    */
    login.add(month, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 180, 90, -1));

    login_b.setIcon(new javax.swing.ImageIcon(getClass().getResource("/uefa/user.png"))); // NOI18N
    login_b.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            login_bMouseClicked(evt);
        }
    });
    login.add(login_b, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 380, 40, 40));

    jLabel17.setFont(new java.awt.Font("Lucida Grande", 1, 14));
    jLabel17.setForeground(new java.awt.Color(255, 255, 255));
    jLabel17.setText("Already have an account?");
    login.add(jLabel17, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 280, 220, -1));

    email.setFont(new java.awt.Font("Helvetica", 0, 13)); // NOI18N
    /*
    email.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            emailActionPerformed(evt);
        }
    });
    */
    login.add(email, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 110, 240, -1));

    jLabel16.setFont(new java.awt.Font("Helvetica", 1, 18));
    jLabel16.setForeground(new java.awt.Color(255, 255, 255));
    jLabel16.setText("Sign up now!");
    login.add(jLabel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 20, 170, -1));

    firstname.setFont(new java.awt.Font("Helvetica", 0, 13)); // NOI18N
    /*
    firstname.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            firstnameActionPerformed(evt);
        }
    });
    */
    login.add(firstname, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 50, 240, -1));
    login.add(password, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 140, 240, -1));
    login.add(lpassword, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 340, 240, -1));

    getContentPane().add(login, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 240, 400, 450));

    bkgrdtemp.setMaximumSize(new java.awt.Dimension(20, 20));
    bkgrdtemp.setPreferredSize(new java.awt.Dimension(20, 20));

    jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/uefa/back.jpg"))); // NOI18N

    org.jdesktop.layout.GroupLayout bkgrdtempLayout = new org.jdesktop.layout.GroupLayout(bkgrdtemp);
    bkgrdtemp.setLayout(bkgrdtempLayout);
    bkgrdtempLayout.setHorizontalGroup(
        bkgrdtempLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
        .add(0, 20, Short.MAX_VALUE)
        .add(bkgrdtempLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(bkgrdtempLayout.createSequentialGroup()
                .addContainerGap()
                .add(jLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 1220, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
    );
    bkgrdtempLayout.setVerticalGroup(
        bkgrdtempLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
        .add(0, 840, Short.MAX_VALUE)
        .add(bkgrdtempLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(bkgrdtempLayout.createSequentialGroup()
                .addContainerGap()
                .add(jLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 820, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
    );

    getContentPane().add(bkgrdtemp, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 0, -1, -1));

    toolbar.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    homelabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    homelabel.setText("Home");
    homelabel.setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(0, 102, 0)));
    homelabel.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    homelabel.setMaximumSize(new java.awt.Dimension(120, 40));
    homelabel.setMinimumSize(new java.awt.Dimension(120, 40));
    homelabel.setPreferredSize(new java.awt.Dimension(120, 40));
    homelabel.setSize(new java.awt.Dimension(120, 40));
    homelabel.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            homelabelMouseClicked(evt);
        }
    });
    toolbar.add(homelabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(52, 0, -1, -1));

    gameslabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    gameslabel.setText("Games");
    gameslabel.setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(0, 102, 0)));
    gameslabel.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    gameslabel.setMaximumSize(new java.awt.Dimension(120, 40));
    gameslabel.setMinimumSize(new java.awt.Dimension(120, 40));
    gameslabel.setPreferredSize(new java.awt.Dimension(120, 40));
    gameslabel.setSize(new java.awt.Dimension(120, 40));
    gameslabel.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            gameslabelMouseClicked(evt);
        }
    });
    toolbar.add(gameslabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 0, -1, -1));

    bettinglabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    bettinglabel.setText("Betting");
    bettinglabel.setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(0, 102, 0)));
    bettinglabel.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    bettinglabel.setMaximumSize(new java.awt.Dimension(120, 40));
    bettinglabel.setMinimumSize(new java.awt.Dimension(120, 40));
    bettinglabel.setPreferredSize(new java.awt.Dimension(120, 40));
    bettinglabel.setSize(new java.awt.Dimension(120, 40));
    bettinglabel.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            bettinglabelMouseClicked(evt);
        }
    });
    toolbar.add(bettinglabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(308, 0, -1, -1));

    teamslabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    teamslabel.setText("Teams");
    teamslabel.setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(0, 102, 0)));
    teamslabel.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    teamslabel.setMaximumSize(new java.awt.Dimension(120, 40));
    teamslabel.setMinimumSize(new java.awt.Dimension(120, 40));
    teamslabel.setPreferredSize(new java.awt.Dimension(120, 40));
    teamslabel.setSize(new java.awt.Dimension(120, 40));
    toolbar.add(teamslabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(436, 0, -1, -1));

    aboutlabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    aboutlabel.setText("About");
    aboutlabel.setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(0, 102, 0)));
    aboutlabel.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    aboutlabel.setMaximumSize(new java.awt.Dimension(120, 40));
    aboutlabel.setMinimumSize(new java.awt.Dimension(120, 40));
    aboutlabel.setPreferredSize(new java.awt.Dimension(120, 40));
    aboutlabel.setSize(new java.awt.Dimension(120, 40));
    aboutlabel.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            aboutlabelMouseClicked(evt);
        }
    });
    toolbar.add(aboutlabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(564, 0, -1, -1));

    getContentPane().add(toolbar, new org.netbeans.lib.awtextra.AbsoluteConstraints(310, 10, 730, -1));

    home_sidebar.setBackground(new java.awt.Color(204, 153, 0));
    home_sidebar.setMaximumSize(new java.awt.Dimension(310, 670));
    home_sidebar.setMinimumSize(new java.awt.Dimension(310, 670));
    home_sidebar.setPreferredSize(new java.awt.Dimension(310, 670));
    home_sidebar.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    welcome.setFont(new java.awt.Font("Helvetica", 1, 24));
    welcome.setForeground(new java.awt.Color(255, 255, 255));
    welcome.setText("Welcome,");
    home_sidebar.add(welcome, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 20, 113, 30));

    comments_title.setFont(new java.awt.Font("Helvetica", 1, 18)); // NOI18N
    comments_title.setForeground(java.awt.Color.white);
    comments_title.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    comments_title.setText("<html>Check out what people are <br>talking about</html>");
    home_sidebar.add(comments_title, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 373, 280, 37));

    morelabel.setFont(new java.awt.Font("Helvetica", 0, 14)); // NOI18N
    morelabel.setForeground(java.awt.Color.white);
    morelabel.setText("More");
    morelabel.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            morelabelMouseClicked(evt);
        }
    });
    home_sidebar.add(morelabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(106, 307, -1, -1));

    user_bets1.setFont(new java.awt.Font("Helvetica", 1, 18)); // NOI18N
    user_bets1.setForeground(java.awt.Color.white);
    user_bets1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    user_bets1.setText("Your current bets");
    home_sidebar.add(user_bets1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 58, 280, 30));

    moreicon.setIcon(new javax.swing.ImageIcon(getClass().getResource("/uefa/next.png"))); // NOI18N
    moreicon.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            moreiconMouseClicked(evt);
        }
    });
    home_sidebar.add(moreicon, new org.netbeans.lib.awtextra.AbsoluteConstraints(147, 299, -1, -1));

    betsnumber.setFont(new java.awt.Font("Helvetica", 0, 14)); // NOI18N
    betsnumber.setForeground(java.awt.Color.white);
    betsnumber.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    betsnumber.setText("You have X current bets");
    home_sidebar.add(betsnumber, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 96, 280, -1));
    home_sidebar.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 349, 280, 10));

    userwelcome.setFont(new java.awt.Font("Helvetica", 1, 24));
    userwelcome.setForeground(new java.awt.Color(255, 255, 255));
    userwelcome.setText(User.firstname
    );
    home_sidebar.add(userwelcome, new org.netbeans.lib.awtextra.AbsoluteConstraints(141, 23, 159, -1));

    p2.setOpaque(false);

    betTeam2.setFont(new java.awt.Font("Helvetica", 0, 14)); // NOI18N
    betTeam2.setForeground(java.awt.Color.white);
    betTeam2.setText("Something vs apple");

    betOn2.setFont(new java.awt.Font("Helvetica", 0, 14)); // NOI18N
    betOn2.setForeground(java.awt.Color.white);
    betOn2.setText("Apple win");

    betAmount2.setFont(new java.awt.Font("Helvetica", 0, 14)); // NOI18N
    betAmount2.setForeground(java.awt.Color.white);
    betAmount2.setText("$ 500");

    org.jdesktop.layout.GroupLayout p2Layout = new org.jdesktop.layout.GroupLayout(p2);
    p2.setLayout(p2Layout);
    p2Layout.setHorizontalGroup(
        p2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
        .add(org.jdesktop.layout.GroupLayout.TRAILING, p2Layout.createSequentialGroup()
            .addContainerGap()
            .add(betTeam2)
            .add(197, 197, 197))
        .add(p2Layout.createSequentialGroup()
            .addContainerGap()
            .add(betOn2)
            .addContainerGap(261, Short.MAX_VALUE))
        .add(p2Layout.createSequentialGroup()
            .addContainerGap()
            .add(betAmount2)
            .addContainerGap(286, Short.MAX_VALUE))
    );
    p2Layout.setVerticalGroup(
        p2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
        .add(p2Layout.createSequentialGroup()
            .add(betTeam2)
            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(betOn2)
            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
            .add(betAmount2))
    );

    org.jdesktop.layout.GroupLayout commentspanelLayout = new org.jdesktop.layout.GroupLayout(commentspanel);
    commentspanel.setLayout(commentspanelLayout);
    commentspanelLayout.setHorizontalGroup(
        commentspanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
        .add(commentspanelLayout.createSequentialGroup()
            .add(28, 28, 28)
            .add(p2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 160, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
            .addContainerGap(92, Short.MAX_VALUE))
    );
    commentspanelLayout.setVerticalGroup(
        commentspanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
        .add(commentspanelLayout.createSequentialGroup()
            .addContainerGap()
            .add(p2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
            .addContainerGap(131, Short.MAX_VALUE))
    );

    home_sidebar.add(commentspanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 428, -1, -1));

    p3.setOpaque(false);

    betTeam4.setFont(new java.awt.Font("Helvetica", 0, 14)); // NOI18N
    betTeam4.setForeground(java.awt.Color.white);
    betTeam4.setText("Something vs apple");

    betOn3.setFont(new java.awt.Font("Helvetica", 0, 14)); // NOI18N
    betOn3.setForeground(java.awt.Color.white);
    betOn3.setText("Apple win");

    betAmount3.setFont(new java.awt.Font("Helvetica", 0, 14)); // NOI18N
    betAmount3.setForeground(java.awt.Color.white);
    betAmount3.setText("$ 500");

    org.jdesktop.layout.GroupLayout p3Layout = new org.jdesktop.layout.GroupLayout(p3);
    p3.setLayout(p3Layout);
    p3Layout.setHorizontalGroup(
        p3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
        .add(org.jdesktop.layout.GroupLayout.TRAILING, p3Layout.createSequentialGroup()
            .addContainerGap()
            .add(betTeam4)
            .add(197, 197, 197))
        .add(p3Layout.createSequentialGroup()
            .addContainerGap()
            .add(betOn3)
            .addContainerGap(261, Short.MAX_VALUE))
        .add(p3Layout.createSequentialGroup()
            .addContainerGap()
            .add(betAmount3)
            .addContainerGap(286, Short.MAX_VALUE))
    );
    p3Layout.setVerticalGroup(
        p3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
        .add(p3Layout.createSequentialGroup()
            .add(betTeam4)
            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(betOn3)
            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
            .add(betAmount3))
    );

    org.jdesktop.layout.GroupLayout betspanelLayout = new org.jdesktop.layout.GroupLayout(betspanel);
    betspanel.setLayout(betspanelLayout);
    betspanelLayout.setHorizontalGroup(
        betspanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
        .add(betspanelLayout.createSequentialGroup()
            .add(28, 28, 28)
            .add(p3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 160, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
            .addContainerGap(84, Short.MAX_VALUE))
    );
    betspanelLayout.setVerticalGroup(
        betspanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
        .add(betspanelLayout.createSequentialGroup()
            .addContainerGap()
            .add(p3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
            .addContainerGap(83, Short.MAX_VALUE))
    );

    home_sidebar.add(betspanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 135, -1, -1));

    getContentPane().add(home_sidebar, new org.netbeans.lib.awtextra.AbsoluteConstraints(790, 100, 310, 670));

    homescroll.setPreferredSize(new java.awt.Dimension(540, 670));

    home.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    home.setMaximumSize(new java.awt.Dimension(490, 880));
    home.setMinimumSize(new java.awt.Dimension(490, 880));
    home.setOpaque(false);
    home.setPreferredSize(new java.awt.Dimension(490, 880));
    home.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    currentgameslabel.setFont(new java.awt.Font("Helvetica", 1, 24));
    currentgameslabel.setForeground(new java.awt.Color(255, 255, 255));
    currentgameslabel.setLabelFor(home);
    currentgameslabel.setText("Current Games");
    currentgameslabel.setBounds(new java.awt.Rectangle(100, 200, 175, 25));
    home.add(currentgameslabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 30, 180, 30));

    panel1.setBackground(new java.awt.Color(255, 255, 255));
    panel1.setDebugGraphicsOptions(javax.swing.DebugGraphics.NONE_OPTION);
    panel1.setLocation(new java.awt.Point(0, 200));
    panel1.setMaximumSize(new java.awt.Dimension(450, 100));
    panel1.setOpaque(false);
    panel1.setSize(new java.awt.Dimension(450, 100));
    panel1.setLayout(null);

    team11.setBackground(new java.awt.Color(255, 255, 255));
    team11.setFont(new java.awt.Font("Helvetica", 1, 14));
    team11.setForeground(new java.awt.Color(204, 204, 255));
    team11.setText("Team 1");
    team11.setVerticalAlignment(javax.swing.SwingConstants.TOP);
    team11.setAlignmentX(1.0F);
    panel1.add(team11);
    team11.setBounds(240, 10, 170, 15);

    loc1.setFont(new java.awt.Font("Helvetica", 1, 13));
    loc1.setForeground(new java.awt.Color(153, 153, 153));
    loc1.setText("Location :");
    panel1.add(loc1);
    loc1.setBounds(110, 40, 200, 13);

    ref1.setFont(new java.awt.Font("Helvetica", 1, 13));
    ref1.setForeground(new java.awt.Color(153, 153, 153));
    ref1.setText("Referree :");
    panel1.add(ref1);
    ref1.setBounds(110, 70, 200, 13);

    pic21.setIcon(new javax.swing.ImageIcon(getClass().getResource("/uefa/1.FC-Kaiserslautern.png"))); // NOI18N
    pic21.setText("jLabel7");
    panel1.add(pic21);
    pic21.setBounds(380, 20, 60, 70);

    pic11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/uefa/1.FC-Kaiserslautern.png"))); // NOI18N
    pic11.setText("jLabel7");
    panel1.add(pic11);
    pic11.setBounds(10, 20, 60, 70);
    panel1.add(jSeparator2);
    jSeparator2.setBounds(-10, 90, 470, 12);

    team12.setBackground(new java.awt.Color(255, 255, 255));
    team12.setFont(new java.awt.Font("Helvetica", 1, 14));
    team12.setForeground(new java.awt.Color(204, 204, 255));
    team12.setText("Team 1");
    team12.setVerticalAlignment(javax.swing.SwingConstants.TOP);
    team12.setAlignmentX(1.0F);
    panel1.add(team12);
    team12.setBounds(40, 10, 170, 15);

    jLabel10.setBackground(new java.awt.Color(255, 255, 255));
    jLabel10.setFont(new java.awt.Font("Helvetica", 1, 14));
    jLabel10.setForeground(new java.awt.Color(255, 255, 255));
    jLabel10.setText("VS");
    panel1.add(jLabel10);
    jLabel10.setBounds(210, 10, 20, 15);

    home.add(panel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 380, 450, 100));

    panel2.setBackground(new java.awt.Color(255, 255, 255));
    panel2.setLocation(new java.awt.Point(0, 300));
    panel2.setMaximumSize(new java.awt.Dimension(450, 100));
    panel2.setOpaque(false);
    panel2.setSize(new java.awt.Dimension(450, 100));
    panel2.setLayout(null);

    team13.setBackground(new java.awt.Color(255, 255, 255));
    team13.setFont(new java.awt.Font("Helvetica", 1, 14));
    team13.setForeground(new java.awt.Color(204, 204, 255));
    team13.setText("Team 1");
    team13.setVerticalAlignment(javax.swing.SwingConstants.TOP);
    team13.setAlignmentX(1.0F);
    panel2.add(team13);
    team13.setBounds(240, 10, 170, 15);

    loc2.setFont(new java.awt.Font("Helvetica", 1, 13));
    loc2.setForeground(new java.awt.Color(153, 153, 153));
    loc2.setText("Location :");
    panel2.add(loc2);
    loc2.setBounds(110, 40, 200, 13);

    ref2.setFont(new java.awt.Font("Helvetica", 1, 13));
    ref2.setForeground(new java.awt.Color(153, 153, 153));
    ref2.setText("Referree :");
    panel2.add(ref2);
    ref2.setBounds(110, 70, 200, 13);

    pic22.setIcon(new javax.swing.ImageIcon(getClass().getResource("/uefa/1.FC-Kaiserslautern.png"))); // NOI18N
    pic22.setText("jLabel7");
    panel2.add(pic22);
    pic22.setBounds(380, 20, 60, 70);

    pic12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/uefa/1.FC-Kaiserslautern.png"))); // NOI18N
    pic12.setText("jLabel7");
    panel2.add(pic12);
    pic12.setBounds(10, 20, 60, 70);
    panel2.add(jSeparator3);
    jSeparator3.setBounds(-10, 90, 470, 12);

    team14.setBackground(new java.awt.Color(255, 255, 255));
    team14.setFont(new java.awt.Font("Helvetica", 1, 14));
    team14.setForeground(new java.awt.Color(204, 204, 255));
    team14.setText("Team 1");
    team14.setVerticalAlignment(javax.swing.SwingConstants.TOP);
    team14.setAlignmentX(1.0F);
    panel2.add(team14);
    team14.setBounds(40, 10, 170, 15);

    jLabel9.setBackground(new java.awt.Color(255, 255, 255));
    jLabel9.setFont(new java.awt.Font("Helvetica", 1, 14));
    jLabel9.setForeground(new java.awt.Color(255, 255, 255));
    jLabel9.setText("VS");
    panel2.add(jLabel9);
    jLabel9.setBounds(210, 10, 20, 15);

    home.add(panel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 480, 450, 100));

    panel3.setBackground(new java.awt.Color(255, 255, 255));
    panel3.setLocation(new java.awt.Point(0, 400));
    panel3.setMaximumSize(new java.awt.Dimension(450, 100));
    panel3.setOpaque(false);
    panel3.setPreferredSize(new java.awt.Dimension(450, 100));
    panel3.setSize(new java.awt.Dimension(450, 100));
    panel3.setLayout(null);

    team15.setBackground(new java.awt.Color(255, 255, 255));
    team15.setFont(new java.awt.Font("Helvetica", 1, 14));
    team15.setForeground(new java.awt.Color(204, 204, 255));
    team15.setText("Team 1");
    team15.setVerticalAlignment(javax.swing.SwingConstants.TOP);
    team15.setAlignmentX(1.0F);
    panel3.add(team15);
    team15.setBounds(240, 10, 170, 15);

    loc3.setFont(new java.awt.Font("Helvetica", 1, 13));
    loc3.setForeground(new java.awt.Color(153, 153, 153));
    loc3.setText("Location :");
    panel3.add(loc3);
    loc3.setBounds(110, 40, 200, 13);

    ref3.setFont(new java.awt.Font("Helvetica", 1, 13));
    ref3.setForeground(new java.awt.Color(153, 153, 153));
    ref3.setText("Referree :");
    panel3.add(ref3);
    ref3.setBounds(110, 70, 200, 13);

    pic23.setIcon(new javax.swing.ImageIcon(getClass().getResource("/uefa/1.FC-Kaiserslautern.png"))); // NOI18N
    pic23.setText("jLabel7");
    panel3.add(pic23);
    pic23.setBounds(380, 20, 60, 70);

    pic13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/uefa/1.FC-Kaiserslautern.png"))); // NOI18N
    pic13.setText("jLabel7");
    panel3.add(pic13);
    pic13.setBounds(10, 20, 60, 70);
    panel3.add(jSeparator6);
    jSeparator6.setBounds(-10, 90, 470, 12);

    team16.setBackground(new java.awt.Color(255, 255, 255));
    team16.setFont(new java.awt.Font("Helvetica", 1, 14));
    team16.setForeground(new java.awt.Color(204, 204, 255));
    team16.setText("Team 1");
    team16.setVerticalAlignment(javax.swing.SwingConstants.TOP);
    team16.setAlignmentX(1.0F);
    panel3.add(team16);
    team16.setBounds(40, 10, 170, 15);

    jLabel8.setBackground(new java.awt.Color(255, 255, 255));
    jLabel8.setFont(new java.awt.Font("Helvetica", 1, 14));
    jLabel8.setForeground(new java.awt.Color(255, 255, 255));
    jLabel8.setText("VS");
    panel3.add(jLabel8);
    jLabel8.setBounds(210, 10, 20, 15);

    home.add(panel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 580, 450, 100));

    panel4.setBackground(new java.awt.Color(255, 255, 255));
    panel4.setLocation(new java.awt.Point(0, 500));
    panel4.setMaximumSize(new java.awt.Dimension(450, 100));
    panel4.setOpaque(false);
    panel4.setSize(new java.awt.Dimension(450, 100));
    panel4.setLayout(null);

    team17.setBackground(new java.awt.Color(255, 255, 255));
    team17.setFont(new java.awt.Font("Helvetica", 1, 14));
    team17.setForeground(new java.awt.Color(204, 204, 255));
    team17.setText("Team 1");
    team17.setVerticalAlignment(javax.swing.SwingConstants.TOP);
    team17.setAlignmentX(1.0F);
    panel4.add(team17);
    team17.setBounds(240, 10, 170, 15);

    loc4.setFont(new java.awt.Font("Helvetica", 1, 13));
    loc4.setForeground(new java.awt.Color(153, 153, 153));
    loc4.setText("Location :");
    panel4.add(loc4);
    loc4.setBounds(110, 40, 200, 13);

    ref4.setFont(new java.awt.Font("Helvetica", 1, 13));
    ref4.setForeground(new java.awt.Color(153, 153, 153));
    ref4.setText("Referree :");
    panel4.add(ref4);
    ref4.setBounds(110, 70, 200, 13);

    pic24.setIcon(new javax.swing.ImageIcon(getClass().getResource("/uefa/1.FC-Kaiserslautern.png"))); // NOI18N
    pic24.setText("jLabel7");
    panel4.add(pic24);
    pic24.setBounds(380, 20, 60, 70);

    pic14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/uefa/1.FC-Kaiserslautern.png"))); // NOI18N
    pic14.setText("jLabel7");
    panel4.add(pic14);
    pic14.setBounds(10, 20, 60, 70);
    panel4.add(jSeparator8);
    jSeparator8.setBounds(-10, 90, 470, 12);

    team18.setBackground(new java.awt.Color(255, 255, 255));
    team18.setFont(new java.awt.Font("Helvetica", 1, 14));
    team18.setForeground(new java.awt.Color(204, 204, 255));
    team18.setText("Team 1");
    team18.setVerticalAlignment(javax.swing.SwingConstants.TOP);
    team18.setAlignmentX(1.0F);
    panel4.add(team18);
    team18.setBounds(40, 10, 170, 15);

    jLabel11.setBackground(new java.awt.Color(255, 255, 255));
    jLabel11.setFont(new java.awt.Font("Helvetica", 1, 14));
    jLabel11.setForeground(new java.awt.Color(255, 255, 255));
    jLabel11.setText("VS");
    panel4.add(jLabel11);
    jLabel11.setBounds(210, 10, 20, 15);

    home.add(panel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 280, 450, 100));

    panel5.setBackground(new java.awt.Color(255, 255, 255));
    panel5.setLocation(new java.awt.Point(0, 600));
    panel5.setMaximumSize(new java.awt.Dimension(450, 100));
    panel5.setOpaque(false);
    panel5.setPreferredSize(new java.awt.Dimension(450, 100));
    panel5.setSize(new java.awt.Dimension(450, 100));
    panel5.setLayout(null);

    team19.setBackground(new java.awt.Color(255, 255, 255));
    team19.setFont(new java.awt.Font("Helvetica", 1, 14));
    team19.setForeground(new java.awt.Color(204, 204, 255));
    team19.setText("Team 1");
    team19.setVerticalAlignment(javax.swing.SwingConstants.TOP);
    team19.setAlignmentX(1.0F);
    panel5.add(team19);
    team19.setBounds(240, 10, 170, 15);

    loc5.setFont(new java.awt.Font("Helvetica", 1, 13));
    loc5.setForeground(new java.awt.Color(153, 153, 153));
    loc5.setText("Location :");
    panel5.add(loc5);
    loc5.setBounds(110, 40, 200, 13);

    ref5.setFont(new java.awt.Font("Helvetica", 1, 13));
    ref5.setForeground(new java.awt.Color(153, 153, 153));
    ref5.setText("Referree :");
    panel5.add(ref5);
    ref5.setBounds(110, 70, 200, 13);

    pic25.setIcon(new javax.swing.ImageIcon(getClass().getResource("/uefa/1.FC-Kaiserslautern.png"))); // NOI18N
    pic25.setText("jLabel7");
    panel5.add(pic25);
    pic25.setBounds(380, 20, 60, 70);

    pic15.setIcon(new javax.swing.ImageIcon(getClass().getResource("/uefa/1.FC-Kaiserslautern.png"))); // NOI18N
    pic15.setText("jLabel7");
    panel5.add(pic15);
    pic15.setBounds(10, 20, 60, 70);
    panel5.add(jSeparator10);
    jSeparator10.setBounds(-10, 90, 470, 12);

    team20.setBackground(new java.awt.Color(255, 255, 255));
    team20.setFont(new java.awt.Font("Helvetica", 1, 14));
    team20.setForeground(new java.awt.Color(204, 204, 255));
    team20.setText("Team 1");
    team20.setVerticalAlignment(javax.swing.SwingConstants.TOP);
    team20.setAlignmentX(1.0F);
    panel5.add(team20);
    team20.setBounds(40, 10, 170, 15);

    jLabel12.setBackground(new java.awt.Color(255, 255, 255));
    jLabel12.setFont(new java.awt.Font("Helvetica", 1, 14));
    jLabel12.setForeground(new java.awt.Color(255, 255, 255));
    jLabel12.setText("VS");
    panel5.add(jLabel12);
    jLabel12.setBounds(210, 10, 20, 15);

    home.add(panel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 180, 450, 100));

    panel6.setBackground(new java.awt.Color(255, 255, 255));
    panel6.setLocation(new java.awt.Point(0, 700));
    panel6.setMaximumSize(new java.awt.Dimension(450, 100));
    panel6.setOpaque(false);
    panel6.setSize(new java.awt.Dimension(450, 100));
    panel6.setLayout(null);

    team21.setBackground(new java.awt.Color(255, 255, 255));
    team21.setFont(new java.awt.Font("Helvetica", 1, 14));
    team21.setForeground(new java.awt.Color(204, 204, 255));
    team21.setText("Team 1");
    team21.setVerticalAlignment(javax.swing.SwingConstants.TOP);
    team21.setAlignmentX(1.0F);
    panel6.add(team21);
    team21.setBounds(240, 10, 170, 15);

    loc6.setFont(new java.awt.Font("Helvetica", 1, 13));
    loc6.setForeground(new java.awt.Color(153, 153, 153));
    loc6.setText("Location :");
    panel6.add(loc6);
    loc6.setBounds(110, 40, 200, 13);

    ref6.setFont(new java.awt.Font("Helvetica", 1, 13));
    ref6.setForeground(new java.awt.Color(153, 153, 153));
    ref6.setText("Referree :");
    panel6.add(ref6);
    ref6.setBounds(110, 70, 200, 13);

    pic26.setIcon(new javax.swing.ImageIcon(getClass().getResource("/uefa/1.FC-Kaiserslautern.png"))); // NOI18N
    pic26.setText("jLabel7");
    panel6.add(pic26);
    pic26.setBounds(380, 20, 60, 70);

    pic16.setIcon(new javax.swing.ImageIcon(getClass().getResource("/uefa/1.FC-Kaiserslautern.png"))); // NOI18N
    pic16.setText("jLabel7");
    panel6.add(pic16);
    pic16.setBounds(10, 20, 60, 70);
    panel6.add(jSeparator12);
    jSeparator12.setBounds(-10, 90, 470, 12);

    team22.setBackground(new java.awt.Color(255, 255, 255));
    team22.setFont(new java.awt.Font("Helvetica", 1, 14));
    team22.setForeground(new java.awt.Color(204, 204, 255));
    team22.setText("Team 1");
    team22.setVerticalAlignment(javax.swing.SwingConstants.TOP);
    team22.setAlignmentX(1.0F);
    panel6.add(team22);
    team22.setBounds(40, 10, 170, 15);

    jLabel15.setBackground(new java.awt.Color(255, 255, 255));
    jLabel15.setFont(new java.awt.Font("Helvetica", 1, 14));
    jLabel15.setForeground(new java.awt.Color(255, 255, 255));
    jLabel15.setText("VS");
    panel6.add(jLabel15);
    jLabel15.setBounds(210, 10, 20, 15);

    home.add(panel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 80, 450, 100));

    panel7.setBackground(new java.awt.Color(255, 255, 255));
    panel7.setLocation(new java.awt.Point(0, 800));
    panel7.setMaximumSize(new java.awt.Dimension(450, 100));
    panel7.setOpaque(false);
    panel7.setSize(new java.awt.Dimension(450, 100));
    panel7.setLayout(null);

    team23.setBackground(new java.awt.Color(255, 255, 255));
    team23.setFont(new java.awt.Font("Helvetica", 1, 14));
    team23.setForeground(new java.awt.Color(204, 204, 255));
    team23.setText("Team 1");
    team23.setVerticalAlignment(javax.swing.SwingConstants.TOP);
    team23.setAlignmentX(1.0F);
    panel7.add(team23);
    team23.setBounds(240, 10, 170, 15);

    loc7.setFont(new java.awt.Font("Helvetica", 1, 13));
    loc7.setForeground(new java.awt.Color(153, 153, 153));
    loc7.setText("Location :");
    panel7.add(loc7);
    loc7.setBounds(160, 40, 100, 13);

    ref7.setFont(new java.awt.Font("Helvetica", 1, 13));
    ref7.setForeground(new java.awt.Color(153, 153, 153));
    ref7.setText("Referree :");
    panel7.add(ref7);
    ref7.setBounds(160, 70, 100, 13);

    pic27.setIcon(new javax.swing.ImageIcon(getClass().getResource("/uefa/1.FC-Kaiserslautern.png"))); // NOI18N
    pic27.setText("jLabel7");
    panel7.add(pic27);
    pic27.setBounds(380, 20, 60, 70);

    pic17.setIcon(new javax.swing.ImageIcon(getClass().getResource("/uefa/1.FC-Kaiserslautern.png"))); // NOI18N
    pic17.setText("jLabel7");
    panel7.add(pic17);
    pic17.setBounds(10, 20, 60, 70);
    panel7.add(jSeparator13);
    jSeparator13.setBounds(-10, 90, 470, 12);

    team24.setBackground(new java.awt.Color(255, 255, 255));
    team24.setFont(new java.awt.Font("Helvetica", 1, 14));
    team24.setForeground(new java.awt.Color(204, 204, 255));
    team24.setText("Team 1");
    team24.setVerticalAlignment(javax.swing.SwingConstants.TOP);
    team24.setAlignmentX(1.0F);
    panel7.add(team24);
    team24.setBounds(40, 10, 170, 15);

    jLabel18.setBackground(new java.awt.Color(255, 255, 255));
    jLabel18.setFont(new java.awt.Font("Helvetica", 1, 14));
    jLabel18.setForeground(new java.awt.Color(255, 255, 255));
    jLabel18.setText("VS");
    panel7.add(jLabel18);
    jLabel18.setBounds(210, 10, 20, 15);

    home.add(panel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 780, 450, 100));

    panel8.setBackground(new java.awt.Color(255, 255, 255));
    panel8.setLocation(new java.awt.Point(0, 900));
    panel8.setMaximumSize(new java.awt.Dimension(450, 100));
    panel8.setOpaque(false);
    panel8.setSize(new java.awt.Dimension(450, 100));
    panel8.setLayout(null);

    team25.setBackground(new java.awt.Color(255, 255, 255));
    team25.setFont(new java.awt.Font("Helvetica", 1, 14));
    team25.setForeground(new java.awt.Color(204, 204, 255));
    team25.setText("Team 1");
    team25.setVerticalAlignment(javax.swing.SwingConstants.TOP);
    team25.setAlignmentX(1.0F);
    panel8.add(team25);
    team25.setBounds(240, 10, 170, 15);

    loc8.setFont(new java.awt.Font("Helvetica", 1, 13));
    loc8.setForeground(new java.awt.Color(153, 153, 153));
    loc8.setText("Location :");
    panel8.add(loc8);
    loc8.setBounds(110, 40, 200, 13);

    ref8.setFont(new java.awt.Font("Helvetica", 1, 13));
    ref8.setForeground(new java.awt.Color(153, 153, 153));
    ref8.setText("Referree :");
    panel8.add(ref8);
    ref8.setBounds(110, 70, 200, 13);

    pic28.setIcon(new javax.swing.ImageIcon(getClass().getResource("/uefa/1.FC-Kaiserslautern.png"))); // NOI18N
    pic28.setText("jLabel7");
    panel8.add(pic28);
    pic28.setBounds(380, 20, 60, 70);

    pic18.setIcon(new javax.swing.ImageIcon(getClass().getResource("/uefa/1.FC-Kaiserslautern.png"))); // NOI18N
    pic18.setText("jLabel7");
    panel8.add(pic18);
    pic18.setBounds(10, 20, 60, 70);
    panel8.add(jSeparator14);
    jSeparator14.setBounds(-10, 90, 470, 12);

    team26.setBackground(new java.awt.Color(255, 255, 255));
    team26.setFont(new java.awt.Font("Helvetica", 1, 14));
    team26.setForeground(new java.awt.Color(204, 204, 255));
    team26.setText("Team 1");
    team26.setVerticalAlignment(javax.swing.SwingConstants.TOP);
    team26.setAlignmentX(1.0F);
    panel8.add(team26);
    team26.setBounds(40, 10, 170, 15);

    jLabel19.setBackground(new java.awt.Color(255, 255, 255));
    jLabel19.setFont(new java.awt.Font("Helvetica", 1, 14));
    jLabel19.setForeground(new java.awt.Color(255, 255, 255));
    jLabel19.setText("VS");
    panel8.add(jLabel19);
    jLabel19.setBounds(210, 10, 20, 15);

    home.add(panel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 680, 450, 100));

    homescroll.setViewportView(home);

    getContentPane().add(homescroll, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 100, -1, -1));

    betting.setBackground(new java.awt.Color(0, 255, 204));
    betting.setMinimumSize(new java.awt.Dimension(1100, 710));
    betting.setPreferredSize(new java.awt.Dimension(1100, 710));
    betting.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    bettable.setModel(new javax.swing.table.DefaultTableModel(
        new Object [][] {
            {null, null, null, null, null},
            {null, null, null, null, null},
            {null, null, null, null, null},
            {null, null, null, null, null}
        },
        new String [] {
            "Team 1", "Team 2", "Team 1 wins", "Draw", "Team 2 wins"
        }
    ) {
        boolean[] canEdit = new boolean [] {
            false, false, false, false, true
        };

        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return canEdit [columnIndex];
        }
    });
    tablescroll.setViewportView(bettable);

    betting.add(tablescroll, new org.netbeans.lib.awtextra.AbsoluteConstraints(57, 43, 450, 270));

    pantest.setLayout(new javax.swing.BoxLayout(pantest, javax.swing.BoxLayout.LINE_AXIS));
    betting.add(pantest, new org.netbeans.lib.awtextra.AbsoluteConstraints(77, 453, 290, 210));

    placebeticon.setIcon(new javax.swing.ImageIcon(getClass().getResource("/uefa/dollar_gold.png"))); // NOI18N
    placebeticon.setText("jLabel1");
    placebeticon.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            placebeticonMouseClicked(evt);
        }
    });
    betting.add(placebeticon, new org.netbeans.lib.awtextra.AbsoluteConstraints(787, 327, 30, 30));

    jLabel22.setFont(new java.awt.Font("Helvetica", 1, 14)); // NOI18N
    jLabel22.setText("Date");
    betting.add(jLabel22, new org.netbeans.lib.awtextra.AbsoluteConstraints(387, 473, 130, 30));
    betting.add(jsep2, new org.netbeans.lib.awtextra.AbsoluteConstraints(57, 343, 450, -1));

    betgamelocation.setFont(new java.awt.Font("Helvetica", 0, 14)); // NOI18N
    betgamelocation.setText("beirut");
    betting.add(betgamelocation, new org.netbeans.lib.awtextra.AbsoluteConstraints(387, 543, 130, 30));

    jLabel24.setFont(new java.awt.Font("Helvetica", 1, 14)); // NOI18N
    jLabel24.setText("Referee");
    betting.add(jLabel24, new org.netbeans.lib.awtextra.AbsoluteConstraints(387, 573, 130, 30));

    jLabel25.setFont(new java.awt.Font("Helvetica", 1, 14)); // NOI18N
    jLabel25.setText("Location");
    betting.add(jLabel25, new org.netbeans.lib.awtextra.AbsoluteConstraints(387, 523, 130, 30));

    betdate.setFont(new java.awt.Font("Helvetica", 0, 14)); // NOI18N
    betdate.setText("may 10 2011");
    betting.add(betdate, new org.netbeans.lib.awtextra.AbsoluteConstraints(387, 493, 130, 30));

    betteamslabel2.setFont(new java.awt.Font("Helvetica", 0, 17)); // NOI18N
    betteamslabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    betteamslabel2.setText("title vs title");
    betting.add(betteamslabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(77, 413, 380, -1));

    placebetpanel.setForeground(new java.awt.Color(255, 255, 255));
    placebetpanel.setOpaque(false);
    placebetpanel.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    jLabel27.setFont(new java.awt.Font("Helvetica", 0, 14));
    jLabel27.setForeground(new java.awt.Color(255, 255, 255));
    jLabel27.setText("Win/Draw/Win");
    placebetpanel.add(jLabel27, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 50, 100, 16));

    betteamslabel.setFont(new java.awt.Font("Helvetica", 0, 14)); // NOI18N
    betteamslabel.setForeground(new java.awt.Color(255, 255, 255));
    betteamslabel.setText("TeamA vs TeamB");
    placebetpanel.add(betteamslabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 70, 130, 16));

    jLabel29.setFont(new java.awt.Font("Helvetica", 1, 14));
    jLabel29.setForeground(new java.awt.Color(255, 255, 255));
    jLabel29.setText(" Market");
    placebetpanel.add(jLabel29, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 50, -1, -1));

    betdatetime.setFont(new java.awt.Font("Helvetica", 0, 14)); // NOI18N
    betdatetime.setForeground(new java.awt.Color(255, 255, 255));
    betdatetime.setText("MM DD YYYY");
    placebetpanel.add(betdatetime, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 90, 110, 16));

    jLabel31.setFont(new java.awt.Font("Helvetica", 1, 14));
    jLabel31.setForeground(new java.awt.Color(255, 255, 255));
    jLabel31.setText("Event");
    placebetpanel.add(jLabel31, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 70, -1, -1));

    jLabel32.setFont(new java.awt.Font("Helvetica", 1, 14));
    jLabel32.setForeground(new java.awt.Color(255, 255, 255));
    jLabel32.setText(" Bid Ammount");
    placebetpanel.add(jLabel32, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 150, 100, 20));

    jLabel33.setFont(new java.awt.Font("Helvetica", 1, 14));
    jLabel33.setForeground(new java.awt.Color(255, 255, 255));
    jLabel33.setText("Date and Time");
    placebetpanel.add(jLabel33, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 90, 100, -1));

    jLabel34.setFont(new java.awt.Font("Helvetica", 1, 14));
    jLabel34.setForeground(new java.awt.Color(255, 255, 255));
    jLabel34.setText(" Type");
    placebetpanel.add(jLabel34, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 130, 40, -1));

    bettypecombo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Team 1 wins", "Draw", "Team 2 wins"}));
    /*
    bettypecombo.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            bettypecomboActionPerformed(evt);
        }
    });
    */
    placebetpanel.add(bettypecombo, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 120, 160, -1));
    placebetpanel.add(jSeparator4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, -1, -1));

    jsep1.setForeground(new java.awt.Color(102, 204, 255));
    placebetpanel.add(jsep1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 330, 10));

    betamountcombo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "$10", "$20", "$50", "$100" }));
    placebetpanel.add(betamountcombo, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 150, 160, -1));

    betting.add(placebetpanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(607, 103, 310, 210));

    placebetlabel.setBackground(new java.awt.Color(153, 255, 153));
    placebetlabel.setFont(new java.awt.Font("Helvetica", 1, 18)); // NOI18N
    placebetlabel.setForeground(new java.awt.Color(255, 204, 102));
    placebetlabel.setText("Make me money!");
    placebetlabel.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            placebetlabelMouseClicked(evt);
        }
    });
    betting.add(placebetlabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(634, 337, -1, 16));

    getContentPane().add(betting, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 80, -1, -1));

    about.setBackground(new java.awt.Color(153, 0, 153));
    about.setMaximumSize(new java.awt.Dimension(500, 430));
    about.setMinimumSize(new java.awt.Dimension(500, 430));

    jLabel26.setFont(new java.awt.Font("Lucida Grande", 0, 24)); // NOI18N
    jLabel26.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel26.setText("UEFA CHAMPIONS LEAGUE APPLICATION");

    jLabel38.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel38.setText("Created by");

    jLabel39.setFont(new java.awt.Font("Lucida Grande", 3, 13)); // NOI18N
    jLabel39.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel39.setText("Marc Farra");

    jLabel40.setFont(new java.awt.Font("Lucida Grande", 3, 13)); // NOI18N
    jLabel40.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel40.setText("Maya Kreidieh");

    jLabel41.setFont(new java.awt.Font("Lucida Grande", 3, 13)); // NOI18N
    jLabel41.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel41.setText("Miguel El Khoury");

    jLabel42.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel42.setText("May 2011");

    jLabel43.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel43.setText("American University of Beirut");

    jLabel44.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel44.setText("EECE 450 - Computer Networks");

    jLabel45.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel45.setText("Professor Zaher Dawy");

    org.jdesktop.layout.GroupLayout aboutLayout = new org.jdesktop.layout.GroupLayout(about);
    about.setLayout(aboutLayout);
    aboutLayout.setHorizontalGroup(
        aboutLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
        .add(aboutLayout.createSequentialGroup()
            .addContainerGap()
            .add(aboutLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(jLabel26, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .add(jLabel43, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 473, Short.MAX_VALUE)
                .add(jLabel44, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 473, Short.MAX_VALUE)
                .add(jLabel45, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 460, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(jLabel42, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 473, Short.MAX_VALUE)
                .add(jLabel39, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 473, Short.MAX_VALUE)
                .add(jLabel40, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 473, Short.MAX_VALUE)
                .add(jLabel41, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 473, Short.MAX_VALUE)
                .add(aboutLayout.createSequentialGroup()
                    .add(62, 62, 62)
                    .add(jSeparator7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 340, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(aboutLayout.createSequentialGroup()
                    .add(59, 59, 59)
                    .add(jSeparator5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 345, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(jLabel38, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 473, Short.MAX_VALUE))
            .add(7, 7, 7))
    );
    aboutLayout.setVerticalGroup(
        aboutLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
        .add(aboutLayout.createSequentialGroup()
            .add(35, 35, 35)
            .add(jLabel26)
            .add(33, 33, 33)
            .add(jSeparator5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(jLabel38)
            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
            .add(jLabel39)
            .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
            .add(jLabel40)
            .add(18, 18, 18)
            .add(jLabel41)
            .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
            .add(jSeparator7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
            .add(17, 17, 17)
            .add(jLabel42)
            .add(18, 18, 18)
            .add(jLabel43)
            .add(18, 18, 18)
            .add(jLabel44)
            .add(18, 18, 18)
            .add(jLabel45)
            .add(43, 43, 43))
    );

    getContentPane().add(about, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 250, 500, 430));

    allgamesscroll.setBounds(new java.awt.Rectangle(0, 0, 580, 710));
    allgamesscroll.setMaximumSize(new java.awt.Dimension(600, 710));
    allgamesscroll.setMinimumSize(new java.awt.Dimension(600, 710));
    allgamesscroll.setPreferredSize(new java.awt.Dimension(600, 710));

    allgames.setBackground(new java.awt.Color(0, 102, 51));
    allgames.setLocation(new java.awt.Point(0, 0));
    allgames.setMaximumSize(new java.awt.Dimension(580, 710));
    allgames.setMinimumSize(new java.awt.Dimension(580, 710));
    allgames.setPreferredSize(new java.awt.Dimension(580, 710));
    allgames.setSize(new java.awt.Dimension(580, 710));
    allgames.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    jLabel6.setFont(new java.awt.Font("Lucida Grande", 0, 36)); // NOI18N
    jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel6.setText("All Games");
    allgames.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 20, -1, -1));

    bydate.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    bydate.setText("By Date");
    bydate.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    allgames.add(bydate, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 80, 100, 40));

    byref.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    byref.setText("By Referee");
    byref.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    allgames.add(byref, new org.netbeans.lib.awtextra.AbsoluteConstraints(460, 80, 100, 40));

    byaway.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    byaway.setText("By Away Team");
    byaway.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    allgames.add(byaway, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 80, 100, 40));

    bylocation.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    bylocation.setText("By Location");
    bylocation.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    allgames.add(bylocation, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 80, 100, 40));

    byhome.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    byhome.setText("By Home Team");
    byhome.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    allgames.add(byhome, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 80, 100, 40));

    allgamesscroll.setViewportView(allgames);

    getContentPane().add(allgamesscroll, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 80, 600, 710));

    pack();
    }// </editor-fold>//GEN-END:initComponents

    private void gameslabelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_gameslabelMouseClicked
        showAllgames();
    }//GEN-LAST:event_gameslabelMouseClicked

    private void aboutlabelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_aboutlabelMouseClicked
        showAbout();
    }//GEN-LAST:event_aboutlabelMouseClicked

private void placebeticonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_placebeticonMouseClicked
// TODO add your handling code here:
}//GEN-LAST:event_placebeticonMouseClicked

    private void bettinglabelMouseClicked(java.awt.event.MouseEvent evt) {
        showBets();
    }
                                       
    private void placebetlabelMouseClicked(java.awt.event.MouseEvent evt){
        
    }

    private void signup_lMouseClicked(java.awt.event.MouseEvent evt) {                                      

        signup();
    }                                     

    private void signup_bMouseClicked(java.awt.event.MouseEvent evt) {                                      
    System.out.println("Signup clicked!");
        signup();
    }                                     

    private void login_lMouseClicked(java.awt.event.MouseEvent evt) {                                     
        login();
    }                                    

    private void login_bMouseClicked(java.awt.event.MouseEvent evt) {                                     

        login();
    }

    private void homelabelMouseClicked(java.awt.event.MouseEvent evt) {
        showHome();
    }

    private void morelabelMouseClicked(java.awt.event.MouseEvent evt) {
        showBets();
    }

    private void moreiconMouseClicked(java.awt.event.MouseEvent evt) {
        showBets();
    }


    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                MainFrame frame = new MainFrame();
                frame.setSize(1240,840);
                frame.setVisible(true);
              //  new MainFrame().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel about;
    private javax.swing.JLabel aboutlabel;
    private javax.swing.JPanel allgames;
    private javax.swing.JScrollPane allgamesscroll;
    private javax.swing.JLabel betAmount2;
    private javax.swing.JLabel betAmount3;
    private javax.swing.JLabel betOn2;
    private javax.swing.JLabel betOn3;
    private javax.swing.JLabel betTeam2;
    private javax.swing.JLabel betTeam4;
    private javax.swing.JComboBox betamountcombo;
    private javax.swing.JLabel betdate;
    private javax.swing.JLabel betdatetime;
    private javax.swing.JLabel betgamelocation;
    private javax.swing.JLabel betsnumber;
    private javax.swing.JPanel betspanel;
    private javax.swing.JTable bettable;
    private javax.swing.JLabel betteamslabel;
    private javax.swing.JLabel betteamslabel2;
    private javax.swing.JPanel betting;
    private javax.swing.JLabel bettinglabel;
    private javax.swing.JComboBox bettypecombo;
    private javax.swing.JPanel bkgrdtemp;
    private javax.swing.JLabel byaway;
    private javax.swing.JLabel bydate;
    private javax.swing.JLabel byhome;
    private javax.swing.JLabel bylocation;
    private javax.swing.JLabel byref;
    private javax.swing.JLabel comments_title;
    private javax.swing.JPanel commentspanel;
    private javax.swing.JLabel currentgameslabel;
    private javax.swing.JComboBox day;
    private javax.swing.JTextField email;
    private javax.swing.JTextField firstname;
    private javax.swing.JLabel gameslabel;
    private javax.swing.JPanel home;
    private javax.swing.JPanel home_sidebar;
    private javax.swing.JLabel homelabel;
    private javax.swing.JScrollPane homescroll;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel43;
    private javax.swing.JLabel jLabel44;
    private javax.swing.JLabel jLabel45;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator10;
    private javax.swing.JSeparator jSeparator12;
    private javax.swing.JSeparator jSeparator13;
    private javax.swing.JSeparator jSeparator14;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JSeparator jSeparator4;
    private javax.swing.JSeparator jSeparator5;
    private javax.swing.JSeparator jSeparator6;
    private javax.swing.JSeparator jSeparator7;
    private javax.swing.JSeparator jSeparator8;
    private javax.swing.JSeparator jsep1;
    private javax.swing.JSeparator jsep2;
    private javax.swing.JTextField lastname;
    private javax.swing.JTextField lemail;
    private javax.swing.JLabel loc1;
    private javax.swing.JLabel loc2;
    private javax.swing.JLabel loc3;
    private javax.swing.JLabel loc4;
    private javax.swing.JLabel loc5;
    private javax.swing.JLabel loc6;
    private javax.swing.JLabel loc7;
    private javax.swing.JLabel loc8;
    private javax.swing.JPanel login;
    private javax.swing.JLabel login_b;
    private javax.swing.JLabel login_l;
    private javax.swing.JPasswordField lpassword;
    private javax.swing.JComboBox month;
    private javax.swing.JLabel moreicon;
    private javax.swing.JLabel morelabel;
    private javax.swing.JPanel p2;
    private javax.swing.JPanel p3;
    private javax.swing.JPanel panel1;
    private javax.swing.JPanel panel2;
    private javax.swing.JPanel panel3;
    private javax.swing.JPanel panel4;
    private javax.swing.JPanel panel5;
    private javax.swing.JPanel panel6;
    private javax.swing.JPanel panel7;
    private javax.swing.JPanel panel8;
    private javax.swing.JPanel pantest;
    private javax.swing.JPasswordField password;
    private javax.swing.JLabel pic11;
    private javax.swing.JLabel pic12;
    private javax.swing.JLabel pic13;
    private javax.swing.JLabel pic14;
    private javax.swing.JLabel pic15;
    private javax.swing.JLabel pic16;
    private javax.swing.JLabel pic17;
    private javax.swing.JLabel pic18;
    private javax.swing.JLabel pic21;
    private javax.swing.JLabel pic22;
    private javax.swing.JLabel pic23;
    private javax.swing.JLabel pic24;
    private javax.swing.JLabel pic25;
    private javax.swing.JLabel pic26;
    private javax.swing.JLabel pic27;
    private javax.swing.JLabel pic28;
    private javax.swing.JLabel placebeticon;
    private javax.swing.JLabel placebetlabel;
    private javax.swing.JPanel placebetpanel;
    private javax.swing.JLabel ref1;
    private javax.swing.JLabel ref2;
    private javax.swing.JLabel ref3;
    private javax.swing.JLabel ref4;
    private javax.swing.JLabel ref5;
    private javax.swing.JLabel ref6;
    private javax.swing.JLabel ref7;
    private javax.swing.JLabel ref8;
    private javax.swing.JLabel signup_b;
    private javax.swing.JLabel signup_l;
    private javax.swing.JScrollPane tablescroll;
    private javax.swing.JLabel team11;
    private javax.swing.JLabel team12;
    private javax.swing.JLabel team13;
    private javax.swing.JLabel team14;
    private javax.swing.JLabel team15;
    private javax.swing.JLabel team16;
    private javax.swing.JLabel team17;
    private javax.swing.JLabel team18;
    private javax.swing.JLabel team19;
    private javax.swing.JLabel team20;
    private javax.swing.JLabel team21;
    private javax.swing.JLabel team22;
    private javax.swing.JLabel team23;
    private javax.swing.JLabel team24;
    private javax.swing.JLabel team25;
    private javax.swing.JLabel team26;
    private javax.swing.JLabel teamslabel;
    private javax.swing.JPanel toolbar;
    private javax.swing.JLabel user_bets1;
    private javax.swing.JLabel userwelcome;
    private javax.swing.JLabel welcome;
    private javax.swing.JComboBox year;
    // End of variables declaration//GEN-END:variables


    public void signup(){

        String fn = firstname.getText();
        if (fn.isEmpty()){
            System.out.println("Please enter a valid username.");
            return;
        }
        String ln = lastname.getText();
        if (ln.isEmpty()){
            System.out.println("Please enter a valid lastname.");
            return;
        }
        String pass = password.getText();
        if (pass.length()<5){
            System.out.println("Your password must contain at least 5 characters.");
            return;
        }
        String em = email.getText();
        if (!(em.contains("@")&&em.contains("."))){
            System.out.println("Please enter a valid email.");
            return;
        }
        String m = month.getSelectedItem().toString();
        if (m.equals("Jan")) {
            m = "1";
        }
        else if (m.equals("Feb")) {
            m = "2";
        }
        else if (m.equals("Mar")) {
            m = "3";
        }
        else if (m.equals("Apr")) {
            m = "4";
        }
        else if (m.equals("May")) {
            m = "5";
        }
        else if (m.equals("Jun")) {
            m = "6";
        }
        else if (m.equals("Jul")) {
            m = "7";
        }
        else if (m.equals("Aug")) {
            m = "8";
        }
        else if (m.equals("Sep")) {
            m = "9";
        }
        else if (m.equals("Oct")) {
            m = "10";
        }
        else if (m.equals("Nov")) {
            m = "11";
        }
        else if (m.equals("Dec")){
            m = "12";
        }
        else{
            System.out.println("Please enter a valid birthdate.");
            return;
        }
        if (year.getSelectedItem().equals("Year:")
                ||day.getSelectedItem().equals("Day:")){
            System.out.println("Please enter a valid birthdate.");
            return;
        }

        String bd = year.getSelectedItem().toString() + "-" + m
                    + "-" + day.getSelectedItem().toString();

        int error = Client.createAccount(fn, ln, em, pass, bd, User);
        System.out.println("error: "+error);

        while (error == -1)
        {
            // Server response is invalid, since TCP connection, keep requesting
            error = Client.createAccount(fn, ln, em, pass, bd, User);
        }
        if (error == -2)
        {
            System.out.println("Cannot create connection");
            return;
        }

        // enter frame

        //reInitComponents();
        showHome();

    }

    public void login(){


        String pass = lpassword.getText();
        String em = lemail.getText();

        int error = Client.login(em, pass, User);

        while (error == -1)
        {
            // Server response is invalid, since TCP connection, keep requesting
            error = Client.login(em, pass, User);
        }
        if (error == -2)
        {
            System.out.println("Cannot create connection");
            JOptionPane.showMessageDialog(null,
                    "Invalid username and password. Try again.",
                    "Login failed",JOptionPane.ERROR_MESSAGE);
            return;


        }
        System.out.println("Firstname is: "+User.firstname);
 //     reInitComponents();
        this.setSize(1240,840);
   //   home = new gui.HomePanel(User, Client);

        // enter frame
        showHome();

    }


    private void showHome(){

        login.setVisible(false);
        homescroll.setVisible(true);
        home.setVisible(true);
        home_sidebar.setVisible(true);
        allgames.setVisible(false);
        allgamesscroll.setVisible(false);
        betting.setVisible(false);
        about.setVisible(false);
        toolbar.setVisible(true);

    }


    private void showBets(){

        login.setVisible(false);
        homescroll.setVisible(false);
        home.setVisible(false);
        home_sidebar.setVisible(false);
        allgames.setVisible(false);
        allgamesscroll.setVisible(false);
        betting.setVisible(true);
        about.setVisible(false);
        toolbar.setVisible(true);
    }
    
    
    public void showAbout(){
        
        login.setVisible(false);
        homescroll.setVisible(false);
        home.setVisible(false);
        home_sidebar.setVisible(false);
        allgames.setVisible(false);
        allgamesscroll.setVisible(false);
        betting.setVisible(false);
        about.setVisible(true);
        toolbar.setVisible(true);
        
    }
    
    
    public void showAllgames(){
        
        login.setVisible(false);
        homescroll.setVisible(false);
        home.setVisible(false);
        home_sidebar.setVisible(false);
        allgames.setVisible(true);
        allgamesscroll.setVisible(true);
        betting.setVisible(false);
        about.setVisible(false);
        toolbar.setVisible(true);
        
    }

}
